package com.example.common.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author wxy
 * @Date 2021/1/20 15:06
 * @Version 1.0
 */
@Data
@Entity
@Table(name = "client_base_info")
public class ClientBaseInfo implements Serializable {
    private static final long serialVersionUID = -1308030421903727365L;

    @Id
    @Column(name = "uid_bigint", columnDefinition = "bigint(20)")
    private Long uid;
    @Column(name = "open_id_nvarchar", columnDefinition = "varchar(255)")
    private String openId;
    @Column(name = "union_id_nvarchar", columnDefinition = "varchar(255)")
    private String unionId;
    @Column(name = "phone_nvarchar", columnDefinition = "varchar(255)")
    private String phone;
    @Column(name = "reg_time_datetime", columnDefinition = "datetime(3)")
    private Date regTime;
    @Column(name = "nick_name_nvarchar", columnDefinition = "varchar(255)")
    private String nickName;
    @Column(name = "header_nvarchar", columnDefinition = "varchar(255)")
    private String header;
    @Column(name = "hx_id_nvarchar", columnDefinition = "varchar(255)")
    private String hxId;
    @Column(name = "hx_pwd_nvarchar", columnDefinition = "varchar(255)")
    private String hxPwd;
    @Column(name = "is_receive_bit", columnDefinition = "tinyint(1)")
    private Boolean isReceive;
    @Column(name = "code_nvarchar", columnDefinition = "varchar(255)")
    private String code;
    @Column(name = "code_time_datetime", columnDefinition = "datetime(3)")
    private Date codeTime;
}
